﻿@page "/page1"
@using BlazorLearn.Components.Comps

<h3>Page1</h3>

<MText Param1="Name"></MText>

<div>
    <img src="favicon.png" />
</div>

@("<span>Hello World</span>")

@{
    var joe = new Person("Joe", 0);
    @: <h1>Name: @joe.Name</h1>
    <h3>Name: @joe.Name</h3>
}

@if (joe.Age > 1)
{
    <p>Age@(joe.Age)</p>
}
else
{
    <p>joe.age@("<=1") name:@(joe.Name)</p>
}


@code {
    class Person
    {
        public string Name { get; set; }
        public int Age { get; set; }

        public Person(string name, int age)
        {
            this.Name = name;
            this.Age = age;
        }
    }

    protected override void OnInitialized()
    {
        base.OnInitialized();
    }

    protected override void OnParametersSet()
    {
        base.OnParametersSet();
    }
}
